
//
//  Tiaozhuananniu.m
//  WeiDuYY
//
//  Created by 张继良 on 2019/1/25.
//  Copyright © 2019 W ke杨. All rights reserved.
//

#import "Tiaozhuananniu.h"
#import <SDAutoLayout.h>
#import "FilmViewController.h"
@interface Tiaozhuananniu ()

@end

@implementation Tiaozhuananniu

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor redColor];
     [self setNav];
   
}

-(void)setNav{
    //按钮
    UIButton *btn1 = [[UIButton alloc] init];
    
    //添加
    [self.view addSubview:btn1];
    btn1.sd_layout.topSpaceToView(self.view, 570).leftSpaceToView(self.view,0).widthIs(60).heightIs(60);
    [btn1 setImage:[UIImage imageNamed:@"com_icon_my_default_hdpi"] forState:UIControlStateNormal];
    [btn1 addTarget:self action:@selector(buttonone) forControlEvents:UIControlEventTouchUpInside];
    
}

-(void)buttonone{
    NSLog(@"134");
    FilmViewController  * F = [[FilmViewController alloc]init];
    [self.navigationController popViewControllerAnimated:YES];
}
@end
